package com.sinosoft.brokerchannel.fallback;

import com.sinosoft.brokerchannel.base.server.BaseFeignExceptionServer;
import com.sinosoft.brokerchannel.base.server.LogInterfaceServer;
import com.sinosoft.brokerchannel.base.common.ChannelConstants;
import com.sinosoft.brokerchannel.feign.ClaimImgUploadFeginURL;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**   
  *  
  * 需求名称:[非车理赔渠道平台]
  * 类描述:[案件照片信息推送接口调用熔断器错误返回信息]
  * @author mayuchao
  * @date [ 2017/11/21 15:34]
  * @version [v1.0]
  */
@Component
public class ClaimImgUploadFeginFallBack extends BaseFeignExceptionServer<ClaimImgUploadFeginURL> {
	@Autowired
	LogInterfaceServer logInterfaceServer;
	@Override
	public ClaimImgUploadFeginURL create(Throwable throwable) {
		String equalsException = super.methodReturn(throwable);
		
		return (String nclmRpt)->{
//			logInterfaceServer.saveLoggerInFile(ChannelConstants.FeignType.COLLECT_UPLOAD.getvalue(), equalsException);
			return ChannelConstants.FEGIN_CALL_BACK+"_"+equalsException;
		};
	}

}
